@extends('admin.layout')
@section('title','新增专家')
@section('content')
        <div class="col-md-12" id="content">
            <script type="text/javascript" src="/assets/js/ueditor/ueditor.config.js"></script>
            <script type="text/javascript" src="/assets/js/ueditor/ueditor.all.js"></script>
            <script type="text/javascript" src="/assets/js/ueditor/lang/zh-cn/zh-cn.js"></script>
            <script src="/assets/js/jquery.ajaxfileupload.js"></script>
            <script src="/assets/js/expert.js"></script>
            <div class="app_content_div" id="app_content_div_301Index">
                <h3>新增专家</h3>
            </div>
            <form class="form-horizontal" method="post" action="/admin/expert/add" enctype="multipart/form-data">
                @csrf
                <div class="form-group">
                    <label for="name" class="col-sm-2 control-label"><span style="color:red;">*</span>姓名</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="name" name="name" >
                    </div>
                </div>
                <div class="form-group">
                    <label for="upload_file" class="col-sm-2 control-label"><span style="color:red;">*</span>缩略图</label>
                    <div class="col-sm-10">
                        <input  id="upload_file" name="upload_file"  type="file" onchange="saveThumb()"/>{{--上传文件后触发函数--}}
                        <input type="hidden" class="form-control" id="photo" name="photo"  >
                        <img style="width:160px;height:200px;" alt="" id="thumb" src=""/>{{--图片标签，显示缩略图，成功上传后函数更新这个属性显示缩略图--}}
                    </div>
                </div>
                <div class="form-group">
                    <label for="title" class="col-sm-2 control-label"><span style="color:red;">*</span>职称</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="title" name="title" >
                    </div>
                </div>
                <div class="form-group">
                    <label for="title" class="col-sm-2 control-label"><span style="color:red;">*</span>职务</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="job" name="job" >
                    </div>
                </div>
                <div class="form-group">
                    <label for="department" class="col-sm-2 control-label"><span style="color:red;">*</span>科室</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="department" name="department" >
                    </div>
                </div>
                <div class="form-group">
                    <label for="hospital" class="col-sm-2 control-label"><span style="color:red;">*</span>医院</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="hospital" name="hospital" >
                    </div>
                </div>
                <div class="form-group" >
                    <label for="doc_introduction" class="col-sm-2 control-label"><span style="color:red;">*</span>简介</label>
                    <div class="col-sm-10">
                        <script id="introduce" name="introduce" type="text/plain"></script>
                        <script type="text/javascript">
                            var editor = UE.getEditor('introduce')
                        </script>
                    </div>
                </div>
                <div class="form-group" >
                    <label for="doc_introduction" class="col-sm-2 control-label"><span style="color:red;">*</span>接受教育</label>
                    <div class="col-sm-10">
                        <script id="education" name="education" type="text/plain"></script>
                        <script type="text/javascript">
                            var editor = UE.getEditor('education')
                        </script>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default" >确定</button>
                    </div>
                </div>
            </form>
        </div>
@endsection
